home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / system / mail / mailhand / metamail.z / metamail / bin / sun-to-mime.csh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  1992-02-16  |  396 b   |  11 lines

  1. #!/bin/csh -f
  2. # Provide VERY minimal support for mail generated by Sun's Openwindows mailtool.
  3. # Basically, this lets you see the text part, but not much else...
  4.  
  5. set TMPFILE=/tmp/suntomime.$$
  6. echo "Content-type: multipart/mixed; boundary=--------" > $TMPFILE
  7. echo "" >> $TMPFILE
  8. sed -e 's/X-Sun-Data-Type:/Content-type:/' >> $TMPFILE < $1
  9. echo "------------" >> $TMPFILE
  10. metamail -d -z $TMPFILE
  11.